package org.luxor.eshop.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.luxor.eshop.order.entity.OrderCommodityEntity;

import java.util.List;

/**
 * 订单与商品项的关联关系
 *
 * @author administrator @date 2020-12-04 15:47:45
 */
@Mapper
public interface OrderCommodityMapper extends BaseMapper<OrderCommodityEntity> {

    /**
     * 根据订单ID获取关联的商品信息
     * @param orderId 订单ID
     * @return 订单ID关联的商品信息列表
     */
    List<OrderCommodityEntity> selectListByOrderId(Long orderId);
}
